<%--
  Created by IntelliJ IDEA.
  User: sunhao
  Date: 2014-11-27
  Time: 16:03
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
    request.setAttribute("contextPath", request.getContextPath());
%>
<html>
<head>
<title>商品中心后台管理  - 书本修改</title>
</head>
<body>

   
	<a href="javaScript:history.go(-1)">返回</a>
	<br/><br/>
	<form action="${contextPath }/admin/book/updatebook" method="post">
	    <input type="hidden" value="${book.bookId }" name="bookId"/>
		<table border="1">
			<tr>
				<td width="20%">书本ID</td>
				<td width="80%">${book.bookId  }</td>
			</tr>
			<tr>
	            <td>*书本名字</td>
	            <td><input type="text" value="${book.bookName }" name="bookName"/></td>
	        </tr>
	        <tr>
	            <td>*书本作者</td>
	            <td><input type="text" value="${book.bookAuthor }" name="bookAuthor"/></td>
	        </tr>
	        <tr>
	            <td>*ISBN</td>
	            <td><input type="text" value="${book.ISBN }" name="ISBN"/></td>
	        </tr>
	        <tr>
	            <td>*书本价格</td>
	            <td><input type="text" value="${book.bookPrice }" name="bookPrice"/></td>
	        </tr>
	        <tr>
	            <td>*出版商</td>
	            <td><input type="text" value="${book.bookPub }" name="bookPub"/></td>
	        </tr>
	       	 <tr>
	            <td>书本描述</td>
	            <td><input type="text" value="${book.bookDescription }" name="bookDescription"/></td>
	        </tr>
	        <tr>
	            <td>*库存</td>
	            <td><input type="text" value="${book.stockNumber }" name="stockNumber"/></td>
	        </tr>
	        
	        <tr>
	            <td>书本图片</td>
	            <td><input type="text" value="${book.bookImg }" name="bookImg"/></td>
	        </tr>
	             
	        
	        <tr>
		        <td>*书本分类</td>
		    	<td><select name="categoryId">
					<c:forEach items="${categories }" var="c"> 
	        		    <option value="${c.categoryId }" >${c.categoryName }</option>
						</c:forEach>
	        	</select></td>
 			</tr>
 			
		</table>
		<br/>
        <input type="submit" value="Update"/>
        <input type="reset" value="Reset"/>
	</form>
</body>
</html>
